//
//  SellRankTableViewCell.m
//  A段项目
//
//  Created by cmcmhjr123 on 15/7/13.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "SellRankTableViewCell.h"


@implementation SellRankTableViewCell

- (void)dealloc
{
    [_totle release];
    [_minlabel release];
    [_image release];
    [_carname release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewScrollPositionNone;
        self.carname = [[UILabel alloc] initWithFrame:CGRectMake(130, 5, 100, 40)];
        [self.contentView addSubview:self.carname];
        [self.carname release];
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(20, 15, 80, 60)];
        [self.contentView addSubview:self.image];
        [self.image release];
        
        self.minlabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 35, 100, 20)];
        self.minlabel.font = [UIFont systemFontOfSize:12];
        self.minlabel.textColor = [UIColor redColor];
        [self.contentView addSubview:self.minlabel];
        [self.minlabel release];
        
        self.totle = [[UILabel alloc] initWithFrame:CGRectMake(130, 58, 100, 20)];
        self.totle.font = [UIFont systemFontOfSize:12];
        self.totle.textColor = [UIColor lightGrayColor];
        [self.contentView addSubview:self.totle];
        [self.totle release];
        
        self.rank = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 20, 27)];
        self.rank.font = [UIFont systemFontOfSize:15];
        self.rank.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.rank];
        
        
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
